import React from 'react'
import { ComponentStory, ComponentMeta } from '@storybook/react'

import Component from '../../components/QuestionComponents/QuestionTitle/Component'

type ComponentType = typeof Component

export default {
  title: 'Question/QuestionTitle',
  component: Component,
} as ComponentMeta<ComponentType>

const Template: ComponentStory<ComponentType> = args => <Component {...args} />

// 默认属性
export const Default = Template.bind({})
Default.args = {}

// 设置属性
export const SetProps = Template.bind({})
SetProps.args = {
  text: 'hello world',
  level: 3,
  isCenter: false,
}
